<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2020/11/12
 * Time: 10:42
 */

namespace app\common\service;


class ServerUserGroupModule
{
    /**
     * 查询授权数
     */
    public function findData($groupId, $moduleId)
    {
        $authInfo = db('server_user_group_module')
            ->where('module_id', $moduleId)
            ->where('group_id', $groupId)
            ->field('id, total, used, etime')
            ->find();

        return $authInfo;
    }
}